package cn.fengzhilun.javase.day14.day10;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

import org.junit.Test;

public class TestFile {
	@Test
	public void test1() {
		File f = new File ("c:/1.txt");
		
		try {
			boolean file = f.createNewFile();
			System.out.println(file);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	@Test
	public void test2() {
		int a[] = new int[2];
		System.out.println(a[3]);
	}
	
	@Test
	public void test3() {
		String str = null;
		
		System.out.println(str.length());
	}
	
	@Test
	public void test4() {
		try {
			 Files.readAllLines(Paths.get("d:/1.txt"));
			System.out.println();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
